<?php
namespace Home\Model;
use Think\Model;
class OrderModel extends Model{
	public function getOrderId($userId){
		 $order = C('DB_PREFIX').'order';
		 $sql = "select OrderId from $order where UserId=$userId";
		 $data = $this->query($sql);
		 return $data;
		
	}
}
?>